@extends('layouts.web')

@section('title', $name.'的网站搜索结果_'.env('APP_NAME'))
@section('keywords', '网站目录,分类目录,网站收录,网站提交,网址收录,网址大全,分类目录网,目录网,网站大全,网址提交,网站推广,目录网程序,目录网源码')
@section('description', $name.'（www.6nww.com）免费送您网站流量，是中小网站和新网站推广首选网络推广服务平台。同时分类目录网为大家提供国内外网址大全，整理和收藏网站大全导航，您也可以在我们的免费发布自己的网站及网站相关信息！')

@section('content')
    <div class="main-container">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header search-header">
                        <li @if($action == 'site') class="hover" @endif><a href="{{ url('search/site/'.$name.'/') }}">网站</a></li>
                        <li @if($action == 'article') class="hover" @endif><a href="{{ url('search/article/'.$name.'/') }}">新闻</a></li>
                    </div>
                    <div class="layui-card-body site-list-body">
                        @if(isset($sites))
                        <div class="search-list clearfix">
                            @foreach($sites as $v)
                            <div class="listContent">
                                <div class="siteImg">
                                    <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}" target="_blank">
                                        <img class="load" alt="{{ $v->name }}" src="{{ env('IMG_URL') }}/files/loading.gif" lay-src="{{ hostStr('shot/'.$v->url.'.jpg') }}">
                                    </a>
                                </div>
                                <h3 class="title">
                                    <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}" target="_blank">
                                        {{ $v->name }}
                                    </a>
                                    <em>{{ $v->updated_at->format('Y-m-d') }}</em>
                                </h3>
                                <p class="description layui-hide-xs">
                                    {{ str_limit($v->description,120,'……') }}
                                </p>
                            </div>
                            @endforeach
                        </div>
                        @endif
                        {{ $sites->links('vendor.pagination.default', ['data' => $sites]) }}
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('scriptsAfterJs')

@endsection
